<?php

require_once('lib/template.php');

Class Controller
{
		private $wantRawData = array();
		protected $get = array();
		protected $post = array();
		protected $data = array();
		protected $template;

		function __construct()
		{
				$this->template = new Template();
		}

		// Call this function with the name of the method for which you do not 
		// wish to receive GET and POST data in the ordinary fashion. You will 
		// use either $this->data or $this->get and $this->post
		function giveRawData($methodname)
		{
				$this->wantRawData[] = $methodname;
		}

		function wantsRawData($methodname)
		{
				return in_array($methodname, $this->wantRawData);
		}

		function setRawData($all, $get, $post)
		{
				$this->data = $all;
				$this->get = $get;
				$this->post = $post;
		}
}


?>
